package com.user.query.model;

import com.user.query.model.base.BaseModel;

import java.io.Serializable;
import java.util.Date;

public class User extends BaseModel implements Serializable {
	private static final long serialVersionUID = 8451987885010054674L;
	private String userId;

	private String accountNo;

	private String userName;

	private String password;

	private Integer sex;

	private String email;

	private String tel;

	private String province;

	private String city;

	private String county;

	private String town;

	private String village;

	private String creator;

	private Date createTime;

	private String updater;

	private Date updateTime;

	private String headUrl;

	private String roleId;

	private Integer isDel;
	// 扩展字段
	private String roleName;

	private Integer roleLevel;

	private String provinceName;

	private String cityName;

	private String countyName;

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId == null ? null : userId.trim();
	}

	public String getAccountNo() {
		return accountNo;
	}

	public void setAccountNo(String accountNo) {
		this.accountNo = accountNo == null ? null : accountNo.trim();
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName == null ? null : userName.trim();
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password == null ? null : password.trim();
	}

	public Integer getSex() {
		return sex;
	}

	public void setSex(Integer sex) {
		this.sex = sex;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email == null ? null : email.trim();
	}

	public String getTel() {
		return tel;
	}

	public void setTel(String tel) {
		this.tel = tel == null ? null : tel.trim();
	}

	public String getProvince() {
		return province;
	}

	public void setProvince(String province) {
		this.province = province == null ? null : province.trim();
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city == null ? null : city.trim();
	}

	public String getCounty() {
		return county;
	}

	public void setCounty(String county) {
		this.county = county == null ? null : county.trim();
	}

	public String getTown() {
		return town;
	}

	public void setTown(String town) {
		this.town = town == null ? null : town.trim();
	}

	public String getVillage() {
		return village;
	}

	public void setVillage(String village) {
		this.village = village == null ? null : village.trim();
	}

	public String getCreator() {
		return creator;
	}

	public void setCreator(String creator) {
		this.creator = creator == null ? null : creator.trim();
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getUpdater() {
		return updater;
	}

	public void setUpdater(String updater) {
		this.updater = updater == null ? null : updater.trim();
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public String getHeadUrl() {
		return headUrl;
	}

	public void setHeadUrl(String headUrl) {
		this.headUrl = headUrl == null ? null : headUrl.trim();
	}

	public String getRoleId() {
		return roleId;
	}

	public void setRoleId(String roleId) {
		this.roleId = roleId == null ? null : roleId.trim();
	}

	public Integer getIsDel() {
		return isDel;
	}

	public void setIsDel(Integer isDel) {
		this.isDel = isDel;
	}

	public String getRoleName() {
		return roleName;
	}

	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}

	public Integer getRoleLevel() {
		return roleLevel;
	}

	public void setRoleLevel(Integer roleLevel) {
		this.roleLevel = roleLevel;
	}

	public String getProvinceName() {
		return provinceName;
	}

	public void setProvinceName(String provinceName) {
		this.provinceName = provinceName;
	}

	public String getCityName() {
		return cityName;
	}

	public void setCityName(String cityName) {
		this.cityName = cityName;
	}

	public String getCountyName() {
		return countyName;
	}

	public void setCountyName(String countyName) {
		this.countyName = countyName;
	}

	@Override
	public String toString() {
		return "User [userId=" + userId + ", accountNo=" + accountNo
				+ ", userName=" + userName + ", createTime=" + createTime
				+ ", creator=" + creator + ", updater=" + updater
				+ ", updateTime=" + updateTime + ", password=" + password
				+ ", sex=" + sex + ", email=" + email + ", tel=" + tel
				+ ", city=" + city + ", province=" + province + ", county="
				+ county + ", town=" + town + ", village=" + village
				+ ", roleId=" + roleId + ", isDel=" + isDel + ", headUrl="
				+ headUrl + "]";
	}

}